<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>成都世界运动会倒计时</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            margin: 0;
            padding: 0;
            height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            color: white;
            overflow: hidden;
        }
        
        /* 背景图片样式 */
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url(https://ts1.tc.mm.bing.net/th/id/R-C.6ee7c9092c4398cc8ed988f2eb42f9cc?rik=FKbPXkTukZk5lw&riu=http%3a%2f%2fnews.xjtu.edu.cn%2f__local%2f6%2fEE%2f7C%2f9092C4398CC8ED988F2EB42F9CC_957D7DBB_55E9D.jpg&ehk=gZDXNZNZjRLN4WFcpUDuNMwh%2fELlFcUURtKB5htdJiQ%3d&risl=&pid=ImgRaw&r=0);
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            filter: brightness(0.4);
            z-index: -1;
            animation: zoom 30s infinite alternate;
        }
        
        @keyframes zoom {
            0% { transform: scale(1); }
            100% { transform: scale(1.05); }
        }
        
        .container {
            background-color: rgba(0, 0, 0, 0.6);
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
            max-width: 800px;
            width: 90%;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        .subtitle {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0.9;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        .countdown {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 30px 0;
            flex-wrap: wrap;
        }
        
        .countdown-item {
            background-color: rgba(255, 255, 255, 0.15);
            padding: 20px;
            border-radius: 10px;
            min-width: 100px;
            transition: transform 0.3s ease;
        }
        
        .countdown-item:hover {
            transform: translateY(-5px);
            background-color: rgba(255, 255, 255, 0.25);
        }
        
        .countdown-number {
            font-size: 3rem;
            font-weight: bold;
            margin-bottom: 5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        .countdown-label {
            font-size: 1rem;
            opacity: 0.8;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .event-info {
            margin-top: 30px;
            font-size: 1.1rem;
            line-height: 1.6;
            background-color: rgba(0, 0, 0, 0.4);
            padding: 15px;
            border-radius: 8px;
        }
        
        .logo {
            max-width: 150px;
            margin-bottom: 20px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
        }
        
        @media (max-width: 600px) {
            .container {
                padding: 20px;
            }
            
            h1 {
                font-size: 1.8rem;
            }
            
            .countdown-item {
                min-width: 70px;
                padding: 15px;
            }
            
            .countdown-number {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <img src="https://www.logocola.com/wp-content/logocola-uploads/2024/05/2025%E5%B9%B4%E6%88%90%E9%83%BD%E4%B8%96%E8%BF%90%E4%BC%9A%E4%BC%9A%E5%BE%BD-1536x972.jpg" alt="世界运动会标志" class="logo">
        <h1>世界运动会倒计时</h1>
        
        <div class="countdown">
            <div class="countdown-item">
                <div class="countdown-number" id="days">00</div>
                <div class="countdown-label">天</div>
            </div>
            <div class="countdown-item">
                <div class="countdown-number" id="hours">00</div>
                <div class="countdown-label">小时</div>
            </div>
            <div class="countdown-item">
                <div class="countdown-number" id="minutes">00</div>
                <div class="countdown-label">分钟</div>
            </div>
            <div class="countdown-item">
                <div class="countdown-number" id="seconds">00</div>
                <div class="countdown-label">秒</div>
            </div>
        </div>
        
        <div class="event-info">
            <p>世界运动会于 <strong>2025年8月7日</strong> 在中国成都举行</p>
            <p>世界运动会是一项国际性体育赛事，包含奥运会未包含的体育项目，如攀岩、滑水、空手道、壁球等</p>
        </div>
    </div>

    <script>
        // 设置目标日期 - 2025年世界运动会 (8月17日)
        const targetDate = new Date('August 17, 2025 20:00:00').getTime();
        
        // 更新倒计时
        function updateCountdown() {
            const now = new Date().getTime();
            const distance = targetDate - now;
            
            // 计算天、小时、分钟、秒
            const days = Math.floor(distance / (1000 * 60 * 60 * 24));
            const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
            const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
            const seconds = Math.floor((distance % (1000 * 60)) / 1000);
            
            // 显示结果
            document.getElementById('days').innerHTML = days.toString().padStart(2, '0');
            document.getElementById('hours').innerHTML = hours.toString().padStart(2, '0');
            document.getElementById('minutes').innerHTML = minutes.toString().padStart(2, '0');
            document.getElementById('seconds').innerHTML = seconds.toString().padStart(2, '0');
            
            // 如果倒计时结束
            if (distance < 0) {
                clearInterval(countdownInterval);
                document.querySelector('.countdown').innerHTML = '<div style="font-size: 2rem; font-weight: bold;">世界运动会已开始!</div>';
            }
        }
        
        // 立即执行一次
        updateCountdown();
        
        // 每秒更新一次
        const countdownInterval = setInterval(updateCountdown, 1000);
    </script>
</body>
</html>